package com.chen.demo01;

public class Proxy {
    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public Proxy() {
    }

    public void rent(){
        seeHouse();
        host.rent();
        sign();
        fare() ;
    }

    public void seeHouse(){
        System.out.println("中介带看房");
    }

    public void sign(){
        System.out.println("签租租赁合同");
    }

    public void fare(){
        System.out.println("收中介费");
    }
}
